<template>
	<view class="wrap" style="padding-bottom: 60px;">
		<!-- 当前套餐 -->
		<view>
			<u-form :model="form" class="apply-form-field">
				<u-gap height="20" bg-color="#f5f5f5"></u-gap>
				<u-form-item label="任务名称" label-width="150">
					动物园宣传
				</u-form-item>
				<u-gap height="20" bg-color="#f5f5f5"></u-gap>
				<u-form-item label="开始时间" label-width="150">
					2022年10月25日14:30
				</u-form-item>
				<u-form-item label="结束时间" label-width="150">
					2022年10月25日17:30
				</u-form-item>
				<u-gap height="20" bg-color="#f5f5f5"></u-gap>
				<u-form-item label="任务描述" label-width="150">
					给游客讲解关于保护动物的相关知识。
				</u-form-item>
			</u-form>
			<view class="apply-list-foot" slot="foot" style="text-align: center;color: #f28c03;">
				待接收1人，待打卡1人，待评价1人，已完成1人。
			</view>
			<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
			<view v-if="current === 0">
				<u-card class="task-list-item" :border="false" padding="20" margin="20rpx">
					<view slot="head" style="display: flex;align-items: center;justify-content: space-between;" @click="navTo('/pages/chat-list/chat')">
						<view style="display: flex;align-items: center;font-size: 30rpx;"><image class="user-images" src="/static/aidex/images/user06.png"></image>李毅</view><view style="color: #999999;font-size: 22rpx;">2022年10月24日</view>
					</view>
					<view class="" slot="body">
						<u-row gutter="16">
							<u-col span="12">
								<view class="apply-text"><span>志愿者：</span>李毅</view>
							</u-col>
						</u-row>
					</view>
				</u-card>
			</view>
			<view v-if="current === 1">
				<u-card class="task-list-item" :border="false" padding="20" margin="20rpx">
					<view slot="head" style="display: flex;align-items: center;justify-content: space-between;" @click="navTo('/pages/chat-list/chat')">
						<view style="display: flex;align-items: center;font-size: 30rpx;"><image class="user-images" src="/static/aidex/images/user06.png"></image>李毅</view><view style="color: #999999;font-size: 22rpx;">2022年10月24日</view>
					</view>
					<view class="" slot="body">
						<u-row gutter="16">
							<u-col span="12">
								<view class="apply-text"><span>志愿者：</span>李毅</view>
							</u-col>
							<u-col span="12">
								<view class="apply-text"><span>接收时间：</span>2022年10月25日14:30</view>
							</u-col>
						</u-row>
					</view>
				</u-card>
			</view>
			<view v-if="current === 2">
				<u-card class="task-list-item" :border="false" padding="20" margin="20rpx">
					<view slot="head" style="display: flex;align-items: center;justify-content: space-between;" @click="navTo('/pages/chat-list/chat')">
						<view style="display: flex;align-items: center;font-size: 30rpx;"><image class="user-images" src="/static/aidex/images/user06.png"></image>李毅</view><view style="color: #999999;font-size: 22rpx;">2022年10月24日</view>
					</view>
					<view class="" slot="body" @click="navTo('/pages/sys/workbench/add-form113')">
						<u-row gutter="16">
							<u-col span="12">
								<view class="apply-text"><span>志愿者：</span>李毅</view>
							</u-col>
							<u-col span="12">
								<view class="apply-text"><span>打卡时间：</span>2022年10月25日14:30</view>
							</u-col>
							<u-col span="12">
								<view class="apply-text"><span>打卡位置：</span>重庆市南岸区长生桥镇</view>
							</u-col>
						</u-row>
					</view>
				</u-card>
			</view>
			<view v-if="current === 3">
				<u-card class="task-list-item" :border="false" padding="20" margin="20rpx">
					<view slot="head" style="display: flex;align-items: center;justify-content: space-between;" @click="navTo('/pages/chat-list/chat')">
						<view style="display: flex;align-items: center;font-size: 30rpx;"><image class="user-images" src="/static/aidex/images/user06.png"></image>李毅</view><view style="color: #999999;font-size: 22rpx;">2022年10月24日</view>
					</view>
					<view class="" slot="body" @click="navTo('/pages/sys/workbench/add-form115')">
						<u-row gutter="16">
							<u-col span="12">
								<view class="apply-text"><span>志愿者：</span>李毅</view>
							</u-col>
							<u-col span="12">
								<view class="apply-text"><span>评价时间：</span>2022年10月25日14:30</view>
							</u-col>
							<u-col span="12">
								<view class="apply-text"><span>评价人：</span>检察官</view>
							</u-col>
						</u-row>
					</view>
				</u-card>
			</view>
		</view>
		
	</view>
</template>
<script>
export default {
		data() {
			return {
			show: false,
			list: [{
				name: '待接收'
			}, {
				name: '待打卡',
			}, {
				name: '待评价',
			}, {
				name: '已完成',
			}],
			m2mSimflowList:[],
			m2mOrderFlowList:[],
			current: 0,
			status: 'loadmore',
			iconType: 'circle',
			isDot: false,
			loadText: {
						loadmore: '点击加载更多',
						loading: '正在加载...',
						nomore: '没有更多了'
			},
			}
		},
		created(){
		},
		methods: {
			change(index) {
				this.current = index;
			},
			navTo(url) {
				uni.navigateTo({
					url: url
				});
			}
		}

	}
</script>
<style lang="scss" scoped>
@import 'index.scss';
page {
	background-color: #f5f5f5;
}
.wrap .search{
	background: #ffffff;
}
.apply-text{
	font-size: 28rpx;
	color: #333333;
	span{
		color: #999999;
	}
}
.user-images{
	width: 28px;
	height:28px;
	margin-right: 8px;
}
.apply-list-foot{
	font-size: 28rpx;
}
.personnel-list{
	display: flex;
	align-items: center;
	flex-wrap:wrap;
	.personnel-user{
		position: relative;
		margin: 5px 9px 0;
	}
	.user-images{
		width: 48px;
		height:48px;
		margin-right:0;
		
	}
	.iconfont{
		position: absolute;
		top:-12px;
		right:-5px;
		color: #FE0100;
	}
}
</style>
